package com.quick.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.wx.domain.User;
import com.wx.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName UserController
 * @Description https://blog.csdn.net/qq_36890499/article/details/80858663
 * @Author wangxin332
 * @Date 2018/12/19 下午5:17
 * @Version 1.0
 **/
@RestController
@RequestMapping("/user")
public class UserController {
	@Reference(version = "1.1.1")
	private UserService userService;

	@RequestMapping("/getUser")
	public User getUser(String name){
		return userService.getUser(name);
	}
}
